package com.bestcem.xm.txtanls.grpc.service.param.topic;

import com.bestcem.xm.common.core.constant.RegTypes;
import com.bestcem.xm.txtanls.service.dto.chart.TimeRangeDTO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @author liheng
 * @version v1.0
 * @date 2021/5/21 14:55
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ListTopicGroupParam {

    @NotBlank(message = "分析项目id不能为空")
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "项目id格式错误")
    private String projectId;

    private TimeRangeDTO timeRangeDTO;

    private String fieldId;
}
